package com.study;

import com.study.service.Person;
import com.study.service.impl.American;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext app=new ClassPathXmlApplicationContext("annotation.xml");
        Person chinese = app.getBean("chinese", Person.class);
        chinese.useAxe();
        //American american = app.getBean("american", American.class);
        //american.useAxe();
    }
}
